﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SyndicateDAO.Classes;
using SyndicateDAO.DatabaseObject;

namespace SyndicateDAO.DAO
{
    public class CouponDAO : DataBaseHelper<coupon>
    {
        public IQueryable<coupon> SelectAllByDrawId(int dId)
        {
            return this.SelectAll().Where(c => c.drawId == dId);
        }
        public bool InsertCoupon(coupon c)
        {
            return this.Insert(c);
        }
        public bool UpdateCoupon()
        {
            return this.Update();
        }
        public bool DeleteCoupon(coupon c)
        {
            return this.Delete(c);
        }

    }
}
